<?php

class Zend_View_Helper_GetMsg{
	
	public function getMsg($msg, $lang = 'cn'){
		
		$urlArray=explode('/',CURRENT_URL);
		
		$urlArray=explode('-',array_pop($urlArray));		
		
		if($urlArray[0]=='administrator'){
			
			$alert='提示框';
			
		}else{
			
			$alert='Tips';
			
		}
		
		if ($urlArray[0] == 'adminb') {
			$width = '700px';
		} else {
			$width = '950px';
		}
		$thisString = '<div class="centerDiv" style="background:#f8f8f8;width: '.$width.';margin: 5px auto;text-align: center;padding: 10px 0;line-height: 22px;">';
		$thisString .= '<div class="w-blk0 w-blk-loading" style="margin: 0 auto;">';
		$thisString .= '<h2 class="blk0h2 f-iblk clearfix">';
		$thisString .= '<span class="spbg blkhdl">'.$alert.'</span><span class="spbg blkhdr">&nbsp;</span>';
		$thisString .= '</h2>';
		$thisString .= '<div class="blkbody">';
        $thisString .= '<div class="inner-box">';
        $thisString .=  $msg ;
        $thisString .= '</div></div></div></div>';
		
		return $thisString;
		
	}	
}

